package Logic.EventSample.Goods.Collect;

import FrameWork.Model.Player;
import org.springframework.stereotype.Component;

/**
 * 采集成就处理器
 */
@Component
public class CollectAchievementHandler implements CollectHandler {

    @Override
    public void onCollect(Player player, int goodId, int count) {
        if (isRare(goodId)){
            System.out.println("恭喜采集到稀有物品");
        }
    }

    //是否是稀有道具
    private boolean isRare(int goodId){
        return true;
    }

}
